﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ListHotSlide.ascx.cs" Inherits="Webparts_Templates_truyen_ListHotSlide" %>
<%@ Import Namespace="Portal.Data.Entity" %>

<script type="text/javascript">
	var dw=getViewport();
	var hotscroll= 6;
	if(dw[0]<480)
		hotscroll= 2;
	else if(dw[0]<660)
		hotscroll= 3;
	else if(dw[0]<=768)
		hotscroll= 4;
	jQuery(function () { $("#carouselhot").jCarouselLite({  btnNext: ".hot_arr_right", btnPrev: ".hot_arr_left", auto: false, scroll: hotscroll, btnGo: $('.hot_pt a'), activeClass: 'hot_pt_chon' }); }); 
</script>

<div class="hot_nhat clear_fix">
    <div class="wrap_content clear_fix">
        <span class="tit_cate">
            <a href="/hot/"><%=Config.DisplayTitle %></a>
        </span>
        
        <div class="hot_pt">
            <%for (int i = 0; i < (Items.Items.Count / 6); i++)
                { %>
            <a href="#"></a>
            <% } %>
        </div>
        <div class="clear"></div>
		<a href="#" class="hot_arr_left"></a>
		<a href="#" class="hot_arr_right"></a>
        <div id="carouselhot">            
            <ul class="list_hot">
                <asp:Repeater ID="Items" runat="server">
                    <ItemTemplate>
                        <li rel="popover" data-content="<%#Eval("QuickInfo")%>" data-original-title="<%#Eval("FullName")%> [<%#Eval("LastChapTitle")%>]">
                            <a href="<%#Eval("Url")%>" class="hot_thumb">
                                <div class="thumb w143 shadow" style="background: url('<%#Book.RenderImage((string)Eval("Image"), 143)%> ')"></div>
                                <div class="tag_truyen <%#Eval("CssFull") %>"></div>
                            </a>
                            <a href="<%#Eval("Url")%>" class="hot_tit"><%#Eval("FullName")%></a>
                            <div class="hot_view">
                                <span class="sl_view"><%#Eval("TotalVisit") %></span>
                                <span class="hot_date"><%#Portal.Core.Common.FriendlyDateDisplay(Eval("ModifiedDate")) %></span>
                            </div>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
    </div>
    <!--END wrap_content-->
</div>
<!--END hot_nhat-->
